/*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */
@import '../scss_variables.scss';

html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-weight: normal;
}

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    margin: 0;
}

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

img,
video {
    height: auto;
    max-width: 100%;
}

iframe {
    border: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

td,
th {
    padding: 0;
}

td:not([align]),
th:not([align]) {
    text-align: left;
}

html {
    background-color: white;
    font-size: 16px;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    min-width: 300px;
    overflow-x: hidden;
    overflow-y: scroll;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow: hidden;
}

article,
aside,
figure,
footer,
header,
hgroup,
section {
    display: block;
}

code,
pre {
    -moz-osx-font-smoothing: auto;
    -webkit-font-smoothing: auto;
    font-family: monospace;
}

a strong {
    color: currentColor;
}

img {
    height: auto;
    max-width: 100%;
}

input[type='checkbox'],
input[type='radio'] {
    vertical-align: baseline;
}

span {
    font-style: inherit;
    font-weight: inherit;
}

strong {
    color: var(--dark-text-color);
    font-weight: 700;
}

fieldset {
    border: none;
}

pre code {
    background-color: transparent;
    color: currentColor;
    font-size: 1em;
    padding: 0;
}

table td,
table th {
    vertical-align: top;
}

table td:not([align]),
table th:not([align]) {
    text-align: left;
}

table th {
    color: var(--border-color);
}

// in-house
html,
body {
    margin: 0px;
    padding: 0px;
    height: 100%;
    overflow: auto;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.5;
    overscroll-behavior-y: none;
}

body,
button,
input,
select,
textarea {
    font-family: 'Avenir Next', 'Avenir', 'Helvetica Neue', 'Arial', sans-serif;
}

code {
    border-radius: var(--border-radius);
    background-color: var(--light-bg-color);
    color: var(--code-text-color);
    font-size: var(--small-text-size);
    font-weight: 500;
    padding: 4px;
}

strong {
    color: var(--dark-text-color);
}

a {
    color: inherit;
    text-decoration: none;
    &:hover {
        color: var(--color-accent-text);
    }
    &:active,
    &:focus {
        outline: none;
    }
}

div,
textarea,
input,
select,
button {
    &:active,
    &:focus,
    &:focus-within {
        outline: none;
    }
}

input,
textarea {
    @include standard-textbox();
}

input:-webkit-autofill,
input:-internal-autofill-selected {
    -webkit-text-fill-color: var(--text-color);
}

@keyframes autofill {
    to {
        color: var(--text-color);
        background: transparent;
    }
}

input:-webkit-autofill {
    animation-name: autofill;
    animation-fill-mode: both;
}

#___reactour {
    .reactour__helper {
        background-color: var(--bg-color);
        color: var(--text-color);
        > span {
            color: var(--bg-color);
            font-weight: var(--bold-font);
        }
        .reactour__dot {
            color: var(--color-accent);
        }
        button {
            &:disabled {
                svg {
                    color: var(--color-null);
                }
            }
            svg {
                color: var(--color-primary-5);
            }
        }
    }
}

hr {
    background-color: var(--hr-color);
    border: none;
    display: block;
    height: 1px;
    margin: 16px 0px;
}

pre {
    border-radius: var(--border-radius);
    background-color: var(--light-bg-color);
    margin: 4px;
    padding: 12px;
    color: var(--text-color);
    font-size: var(--small-text-size);
    white-space: pre-wrap;
}

blockquote {
    background-color: var(--light-bg-color);
    border-left: 4px solid var(--border-color);
    color: var(--light-text-color);
    border-radius: 0px;
    border-bottom-right-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    padding: 12px;
    margin: 12px 0px;
}

::-webkit-scrollbar {
    -webkit-appearance: none; /* prevent default Mac-OS behavior */
}
::-webkit-scrollbar:vertical {
    width: var(--scroll-bar-size);
}

::-webkit-scrollbar:horizontal {
    height: var(--scroll-bar-size);
}
::-webkit-scrollbar-thumb {
    background-color: var(--scroll-bar-color);
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:active,
::-webkit-scrollbar-thumb:hover {
    background-color: var(--scroll-bar-active-color);
}
::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0);
}
